package com.millstein.aop;

import org.springframework.stereotype.Component;

@Component
public class MyCalculate implements Calculate {

    public int add(int numA, int numB) {
        System.out.println("执行目标方法:add");
        return numA + numB;
    }

    public int sub(int numA, int numB) {
        System.out.println("执行目标方法:sub");
        return numA - numB;
    }

    public int div(int numA, int numB) {
        System.out.println("执行目标方法:div");
        return numA / numB;
    }

    public int mul(int numA, int numB) {
        System.out.println("执行目标方法:mul");
        return numA * numB;
    }

}
